package com.repository;

import com.entity.Diagnose;
import com.entity.Doctor;
import com.entity.Drug;
import com.entity.RegisterDoc;

import java.util.Vector;

public interface DoctorRepository {
    int isExistDoctorByWorkId(String workId);//判断workId是否存在
    int addDoctorLogin(Doctor doctor);//注册医生
    int isDoctorLogin(Doctor doctor);//判断登录是否正确
    Doctor findDoctorByWorkId(String workId);//通过workId查找医生

    Vector<RegisterDoc> findAllRegisterDocByWorkId(String workId,int state);//查找医生手里的挂号病人挂号单

    int addDiagnose(Diagnose diagnose);//给出诊断单

    int addDrug(Drug drug);//给出药方

    Vector<Drug> findAllDrugsByWorkId(String workId); //根据工号查开药记录

    Vector<Diagnose> findAllDiagnosesByWorkId(String workId);//跟工号查诊断记录

    Doctor findDoctorByName(String addDoctorName);//根据姓名查找医生

    void changeRegisterState(int registerDocId);//通过id改变挂号状态
}
